package cn.wyu.pojo;

import java.io.Serializable;

/**
 * 商品的实体类
 * 特点
 * 每个表都要对应一个实体类
 * 什么是实体类呢？
 * 1.类里面的成员变量，都要私有化private
 * 2.每个成员变量都要有get和set方法
 * 3.一定要有无参构造器
 * 4.要实现序列化接口（忽略）
 */
public class Article implements Serializable {
    private int id;
    private String typeCode;
    private String title;
    private String supplier;
    private String price;
    private String discount;
    private String locality;
    private String putawayDate;
    private int storage;
    private String image;
    private String description;
    private String createDate;
    private  int disabled;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTypeCode() {
        return typeCode;
    }

    public void setTypeCode(String typeCode) {
        this.typeCode = typeCode;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getSupplier() {
        return supplier;
    }

    public void setSupplier(String supplier) {
        this.supplier = supplier;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getDiscount() {
        return discount;
    }

    public void setDiscount(String discount) {
        this.discount = discount;
    }

    public String getLocality() {
        return locality;
    }

    public void setLocality(String locality) {
        this.locality = locality;
    }

    public String getPutawayDate() {
        return putawayDate;
    }

    public void setPutawayDate(String putawayDate) {
        this.putawayDate = putawayDate;
    }

    public int getStorage() {
        return storage;
    }

    public void setStorage(int storage) {
        this.storage = storage;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getCreateDate() {
        return createDate;
    }

    public void setCreateDate(String createDate) {
        this.createDate = createDate;
    }

    public int getDisabled() {
        return disabled;
    }

    public void setDisabled(int disabled) {
        this.disabled = disabled;
    }

    public Article(int id, String typeCode, String title, String supplier, String price, String discount, String locality, String putawayDate, int storage, String image, String description, String createDate, int disabled) {
        this.id = id;
        this.typeCode = typeCode;
        this.title = title;
        this.supplier = supplier;
        this.price = price;
        this.discount = discount;
        this.locality = locality;
        this.putawayDate = putawayDate;
        this.storage = storage;
        this.image = image;
        this.description = description;
        this.createDate = createDate;
        this.disabled = disabled;
    }

    public Article() {
    }

    @Override
    public String toString() {
        return "Article{" +
                "id=" + id +
                ", typeCode='" + typeCode + '\'' +
                ", title='" + title + '\'' +
                ", supplier='" + supplier + '\'' +
                ", price='" + price + '\'' +
                ", discount='" + discount + '\'' +
                ", locality='" + locality + '\'' +
                ", putawayDate='" + putawayDate + '\'' +
                ", storage=" + storage +
                ", image='" + image + '\'' +
                ", description='" + description + '\'' +
                ", createDate='" + createDate + '\'' +
                ", disabled=" + disabled +
                '}';
    }
}
